{if $log_info['action'] == "create"}
  <p class="task-tit margin-b15">{$operator} 添加评论：</p>
  <p class="green-text">{AnString::stripHtml($log_detail_info['content']['new_value'], 500)}</p>
  {if $res_name == 'task'}
  <p class="margin-b15"><a href='{AnUrl("task/{$real_res_info.id}")}?rand={time()}{rand()}#comment_{$res_info.id}'>{AnUrl("task/{$task_info['id']}")}#comment_{$res_info.id}</a></p>
  {/if}
{elseif $log_info['action'] == "delete" || ($log_info['action'] == 'update' && isset($log_detail_info['status']) && $log_detail_info['status']['new_value'] == 0)}
  <p class="task-tit margin-b15">{$operator} 删除了评论</p>
  <p class="old-text margin-b15">{AnString::stripHtml($res_info['content'], 500)}</p>
{elseif $log_info['action'] == "update"}
  <p class="task-tit margin-b15">{$operator} 更改了评论</p>
  <p class="old-text">{AnString::stripHtml($log_detail_info['content']['old_value'], 500)}</p>
  <p>修改为:</p>
  <p class="new-text margin-b15">{AnString::stripHtml($log_detail_info['content']['new_value'], 500)}</p>
  {if $res_name == 'task'}
  <p class="margin-b15"><a href='{AnUrl("task/{$real_res_info.id}")}?rand={time()}{rand()}#comment_{$res_info.id}'>{AnUrl("task/{$task_info['id']}")}#comment_{$res_info.id}</a></p>
  {/if}
{/if}